home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 September / Chip_2000-09_cd1.bin / sharewar / Slunec / app / 16 / SOUND.SWG / 0037_Many Audio Formats!!!.pas < prev    next >
Pascal/Delphi Source File  |  1997-05-11  |  49KB  |  1,080 lines

  1. Archive-name: audio-fmts/part1
  2. Submitted-by: Guido van Rossum <guido@cwi.nl>
  3. Version: 3.08
  4. Last-modified: 22-Feb-1994
  5.  
  6. FAQ: Audio File Formats
  7. =======================
  8.  
  9. Table of contents
  10. -----------------
  11.  
  12. Introduction
  13. Device characteristics
  14. Popular sampling rates
  15. Compression schemes
  16. Current hardware
  17. File formats
  18. File conversions
  19. Playing audio files on UNIX
  20. Playing audio files on micros
  21. The Sound Site Newsletter
  22. Posting sounds
  23.  
  24. Appendices (in part 2):
  25.  
  26. FTP access for non-internet sites
  27. AIFF Format (Audio IFF)
  28. The NeXT/Sun audio file format
  29. IFF/8SVX Format
  30. Playing sound on a PC
  31. The EA-IFF-85 documentation
  32. US Federal Standard 1016 availability
  33. Creative Voice (VOC) file format
  34. RIFF WAVE (.WAV) file format
  35. U-LAW and A-LAW definitions
  36. AVR File Format
  37. The Amiga MOD Format
  38.  
  39.  
  40. Introduction
  41. ------------
  42.  
  43. This is version 3 of this FAQ, which I started in November 1991 under
  44. the name "The audio formats guide".  I bumped the major version number
  45. again at the occasion of the split in two parts: part one is the main
  46. text and part two consists of the collection of appendices.
  47.  
  48. I am posting this about once a fortnight, either unchanged (just to
  49. inform new readers), or updated (if I learn more or when new hardware
  50. or software becomes popular).  I post to alt.binaries.sounds.{misc,d}
  51. and to comp.dsp, for maximal coverage of people interested in audio,
  52. and to {news,comp}.answers, for easy reference.
  53.  
  54. The entire FAQ is also available by anonymous ftp from ftp.cwi.nl
  55. [192.16.184.180], directory pub/audio, files AudioFormats.{part1,part2}.
  56.  
  57. BTW: All FAQs, including this one, are available for anonymous ftp on
  58. the archive site rtfm.mit.edu in directory /pub/usenet/news.answers/.
  59. The name under which a FAQ is archived appears in the "Archive-Name:"
  60. line at the top of the article.  This FAQ is archived as
  61. audio-fmts/part[12].
  62.  
  63. A companion posting with subject "Changes to: ..." is occasionally
  64. posted listing the diffs between a new version and the last.  This is
  65. not reposted, and it is suppressed when the diffs are bigger than the
  66. new version.
  67.  
  68. Send updates, comments and questions to <guido@cwi.nl>.  I'd like to
  69. thank everyone who sent updates in the past.
  70.  
  71. --Guido van Rossum, CWI, Amsterdam <guido@cwi.nl>
  72.  
  73.  
  74. Device characteristics
  75. ----------------------
  76.  
  77. In this text, I will only use the term "sample" to refer to a single
  78. output value from an A/D converter, i.e., a small integer number
  79. (usually 8 or 16 bits).
  80.  
  81. Audio data is characterized by the following parameters, which
  82. correspond to settings of the A/D converter when the data was
  83. recorded.  Naturally, the same settings must be used to play the data.
  84.  
  85. - sampling rate (in samples per second), e.g. 8000 or 44100
  86.  
  87. - number of bits per sample, e.g. 8 or 16
  88.  
  89. - number of channels (1 for mono, 2 for stereo, etc.)
  90.  
  91. Approximate sampling rates are often quoted in Hz or kHz ([kilo-]
  92. Hertz), however, the politically correct term is samples per second
  93. (samples/sec).  Sampling rates are always measured per channel, so for
  94. stereo data recorded at 8000 samples/sec, there are actually 16000
  95. samples in a second.  I will sometimes write 8 k as a shorthand for
  96. 8000 samples/sec.
  97.  
  98. Multi-channel samples are generally interleaved on a frame-by-frame
  99. basis: if there are N channels, the data is a sequence of frames,
  100. where each frame contains N samples, one from each channel.  (Thus,
  101. the sampling rate is really the number of *frames* per second.)  For
  102. stereo, the left channel usually comes first.
  103.  
  104. The specification of the number of bits for U-LAW (pronounced mu-law
  105. -- the u really stands for the Greek letter mu) samples is somewhat
  106. problematic.  These samples are logarithmically encoded in 8 bits,
  107. like a tiny floating point number; however, their dynamic range is
  108. that of 12 bit linear data.  Source for converting to/from U-LAW
  109. (written by Jef Poskanzer) is distributed as part of the SOX package
  110. mentioned below; it can easily be ripped apart to serve in other
  111. applications.  The official definition is the CCITT standard G.711.
  112.  
  113. There exists another encoding similar to U-LAW, called A-LAW, which
  114. is used as a European telephony standard.  There is less support for
  115. it in UNIX workstations.
  116.  
  117. (See the Appendix for some formulae describing U-LAW and A-LAW.)
  118.  
  119.  
  120. Popular sampling rates
  121. ----------------------
  122.  
  123. Some sampling rates are more popular than others, for various reasons.
  124. Some recording hardware is restricted to (approximations of) some of
  125. these rates, some playback hardware has direct support for some.  The
  126. popularity of divisors of common rates can be explained by the
  127. simplicity of clock frequency dividing circuits :-).
  128.  
  129. Samples/sec     Description
  130.  
  131. 5500            One fourth of the Mac sampling rate (rarely seen).
  132.  
  133. 7333            One third of the Mac sampling rate (rarely seen).
  134.  
  135. 8000            Exactly 8000 samples/sec is a telephony standard that
  136.                 goes together with U-LAW (and also A-LAW) encoding.
  137.                 Some systems use an slightly different rate; in
  138.                 particular, the NeXT workstation uses 8012.8210513,
  139.                 apparently the rate used by Telco CODECs.
  140.  
  141. 11 k            Either 11025, a quarter of the CD sampling rate,
  142.                 or half the Mac sampling rate (perhaps the most
  143.                 popular rate on the Mac).
  144.  
  145. 16000           Used by, e.g. the G.722 compression standard.
  146.  
  147. 18.9 k          CD-ROM/XA standard.
  148.  
  149. 22 k            Either 22050, half the CD sampling rate, or the Mac
  150.                 rate; the latter is precisely 22254.545454545454 but
  151.                 usually misquoted as 22000.  (Historical note:
  152.                 22254.5454... was the horizontal scan rate of the
  153.                 original 128k Mac.)
  154.  
  155. 32000           Used in digital radio, NICAM (Nearly-Instantaneous
  156.                 Companded Audio Multiplex [IBA/BREMA/BBC]) and other
  157.                 TV work, at least in the UK; also long play DAT and
  158.                 Japanese HDTV.
  159.  
  160. 37.8 k          CD-ROM/XA standard for higher quality.
  161.  
  162. 44056           This weird rate is used by professional audio
  163.                 equipment to fit an integral number of samples in a
  164.                 video frame.
  165.  
  166. 44100           The CD sampling rate.  (DAT players recording
  167.                 digitally from CD also use this rate.)
  168.  
  169. 48000           The DAT (Digital Audio Tape) sampling rate for
  170.                 domestic use.
  171.  
  172. Files samples on SoundBlaster hardware have sampling rates that are
  173. divisors of 1000000.
  174.  
  175. While professinal musicians disagree, most people don't have a problem
  176. if recorded sound is played at a slightly different rate, say, 1-2%.
  177. On the other hand, if recorded data is being fed into a playback
  178. device in real time (say, over a network), even the smallest
  179. difference in sampling rate can frustrate the buffering scheme used...
  180.  
  181. There may be an emerging tendency to standardize on only a few
  182. sampling rates and encoding styles, even if the file formats may
  183. differ.  The suggested rates and styles are:
  184.  
  185.     rate (samp/sec) style mono/stereo
  186.  
  187.     8000 8-bit U-LAW mono
  188.     22050 8-bit linear unsigned mono and stereo
  189.     44100 16-bit linear signed mono and stereo
  190.  
  191.  
  192. Compression schemes
  193. -------------------
  194.  
  195. Strange though it seems, audio data is remarkably hard to compress
  196. effectively.  For 8-bit data, a Huffman encoding of the deltas between
  197. successive samples is relatively successful.  For 16-bit data,
  198. companies like Sony and Philips have spent millions to develop
  199. proprietary schemes.  Information about PASC (Philips' scheme) can be
  200. found in Advanced Digital Audio by Ken C. Pohlmann.
  201.  
  202. Public standards for voice compression are slowly gaining popularity,
  203. e.g. CCITT G.721 (ADPCM at 32 kbits/sec) and G.723 (ADPCM at 24 and 40
  204. kbits/sec).  (ADPCM == Adaptive Delta Pulse Code Modulation.)  Sun
  205. Microsoft has placed the source code of a portable implementation of
  206. these algorithms (as well as G.711, which defines A-LAW and U-LAW) in
  207. the public domain (needless to say, their proprietary implementation
  208. distributed in binary form with Solaris is better :-).  One place to
  209. ftp this source code from is ftp.cwi.nl:/pub/audio/ccitt-adpcm.tar.Z.
  210. Source for another 32 kbits/sec ADPCM implementation, assumed to be
  211. compatible with Intel's DVI audio format, can be ftp'ed from
  212. ftp.cwi.nl:/pub/audio/adpcm.shar.  (** NOTE: if you are using v1.0,
  213. you should get v1.1, released 17-Dec-1992, which fixes a serious bug
  214. -- the quality of v1.1 is claimed to be better than U-LAW **)
  215.  
  216. GSM 06.10 is a speech encoding in use in Europe that compresses 160
  217. 13-bit samples into 260 bits (or 33 bytes), i.e. 1650 bytes/sec (at
  218. 8000 samples/sec).  A free implementation can be ftp'ed from
  219. tub.cs.tu-berlin.de, file /pub/tubmik/gsm-1.0.tar.Z.
  220.  
  221. There are also two US federal standards, 1016 (Code excited linear
  222. prediction (CELP), 4800 bits/s) and 1015 (LPC-10E, 2400 bits/s).  See
  223. also the appendix for 1016.
  224.  
  225. Tony Robinson <ajr@eng.cam.ac.uk> has written a good FAST loss-less
  226. compression for lots of different audio formats (particularly good for
  227. WAV and MOD files).  The software is available by anonymous ftp from
  228. svr-ftp.eng.cam.ac.uk [129.169.24.20], directory misc, file
  229. shorten-1.08.tar.Z.
  230.  
  231. (Note that U-LAW and silence detection can also be considered
  232. compression schemes.)
  233.  
  234. Here's a note about audio codings by Van Jacobson <van@ee.lbl.gov>:
  235. Several people used the words "LPC" and "CELP" interchangably.  They
  236. are very different.  An LPC (Linear Predictive Coding) coder fits
  237. speech to a simple, analytic model of the vocal tract, then throws
  238. away the speech & ships the parameters of the best-fit model.  An LPC
  239. decoder uses those parameters to generate synthetic speech that is
  240. usually more-or-less similar to the original.  The result is
  241. intelligible but sounds like a machine is talking.  A CELP (Code
  242. Excited Linear Predictor) coder does the same LPC modeling but then
  243. computes the errors between the original speech & the synthetic model
  244. and transmits both model parameters and a very compressed
  245. representation of the errors (the compressed representation is an
  246. index into a 'code book' shared between coders & decoders -- this is
  247. why it's called "Code Excited").  A CELP coder does much more work
  248. than an LPC coder (usually about an order of magnitude more) but the
  249. result is much higher quality speech: The FIPS-1016 CELP we're working
  250. on is essentially the same quality as the 32Kb/s ADPCM coder but uses
  251. only 4.8Kb/s (the same as the LPC coder).
  252.  
  253. The comp.compression FAQ has some text on the 6:1 audio compression
  254. scheme used by MPEG (a video compression standard-to-be).  It's
  255. interesting to note that video compression reaches much higher ratios
  256. (like 26:1).  This FAQ is ftp'able from rtfm.mit.edu [18.72.1.58] in
  257. directory /pub/usenet/news.answers/compression-faq, files part1 and
  258. part2.
  259.  
  260. Comp.compression also carries a regular posting "How to uncompress
  261. anything" by David Lemson <lemson@uiuc.edu>, which (tersely) hints on
  262. which program you need to uncompress a file whose name ends in .<foo>
  263. for almost any conceivable <foo>.  Ftp'able from ftp.cso.uiuc.edu
  264. (128.174.5.59) in the directory /doc/pcnet as the file compression.
  265.  
  266. Documentation on a digital cellular telephone system by Qualcomm Inc.
  267. can be ftp'ed from ftp.qualcomm.com:/pub/cdma; the vocoder is in
  268. appendix A.
  269.  
  270. Apple has an Audio Compression/Expansion scheme called ACE (on the GS)
  271. / MACE (on the Macintosh).  It's a lossy scheme that attempts to
  272. predict where the wave will go on the next sample. There's very little
  273. quality change on 8:4 compression, somewhat more for 8:3.  It does
  274. guarantee exactly 50% or 62.5% compression, though.  I believe MACE
  275. uses larger ratios/more loss, but I'm unsure of the specific numbers.
  276. (Marc Sira)
  277.  
  278.  
  279. Current hardware
  280. ----------------
  281.  
  282. I am aware of the following computer systems that can play back and
  283. (sometimes) record audio data, with their characteristics.  Note that
  284. for most systems you can also buy "professional" sampling hardware,
  285. which supports much better quality, e.g. >= 44.1 k 16 bits stereo.
  286. The characteristics listed here are a rough estimate of the
  287. capabilities of the basic hardware only (and even here I am on thin
  288. ice, with systems becoming ever more powerful).
  289.  
  290. machine             bits            max sampling rate    #output channels
  291.  
  292. Mac (all types)     8               22k                  1
  293. Mac (newer ones)    16              64k                  4(128)
  294. Apple IIgs          8               32k / >70k           16(st)
  295. PC/soundblaster pro 8               ?/(22k st, 44.1k mo) 1(st)
  296. PC/soundblaster 16  16              44.1k                1(st)
  297. PC/pas              8               44.1k st, 88.2k mo   1(st)
  298. PC/pas-16           16              44.1k st, 88.2k mo   1(st)
  299. PC/turtle beach multisound 16       44.1k                1(st)
  300. PC/cards with aria chipset 16       44.1k                1(st)
  301. PC/roland rap-10    16              44.1k                1(st)
  302. PC/gravis ultrasound 8/16           44.1k                14-32(st)
  303. Atari ST            8               22k                  1
  304. Atari STE,TT        8               50k                  2
  305. Atari Falcon 030    16              50k                  8(st)
  306. Amiga               8               varies above 29k     4(st)
  307. Sun Sparc           U-LAW           8k                   1
  308. Sun Sparcst. 10     U-LAW,8,16      48k                  1(st)
  309. NeXT                U-LAW,8,16      44.1k                1(st)
  310. SGI Indigo          8,16            48k                  4(st)
  311. SGI Indigo2,Indy    8,16            48k                  16(st,4-channel)
  312. Acorn Archimedes    ~U-LAW          ~180k                8(st)
  313. Sony NWS-3xxx       U,A,8,16        8-37.8k              1(st)
  314. Sony NWS-5xxx       U,A,8,16        8-48k                1(st)
  315. VAXstation 4000     U-LAW           8k                   1
  316. DEC 3000/300-500    U-LAW           8k                   1
  317. DEC 5000/20-25      U-LAW           8k                   1
  318. Tandy 1000/*L*      8               22k                  3
  319. Tandy 2500          8               22k                  3
  320. HP9000/705,710,425e U,A-LAW,16      8k                   1
  321. HP9000/715,725,735  U,A-LAW,16      48k                  1(st)
  322. HP9000/755 option:  U,A-LAW,16      48k                  1(st)
  323. NCD MCX terminal    U,A,8,16        52k                  1(st)
  324.  
  325. 4(st) means "four voices, stereo"; sampling rates xx/yy are
  326. different recording/playback rates; *L* is any type with 'L' in it.
  327.  
  328. All these machines can play back sound without additional hardware,
  329. although the needed software is not always standard; also, some
  330. machines need external hardware to record sound (or to record at
  331. higher quality, like the NeXT, whose built-in sampling hardware only
  332. does 8000 samples/sec in U-LAW).  Please don't send me details on
  333. optional or 3rd party hardware, there is too much and it is really
  334. beyond the scope of this FAQ.  In particular, there is a separate
  335. newsgroup devoted to PC sound cards: comp.sys.ibm.pc.soundcard, which
  336. includes FAQ of its own (also posted to comp.answers and news.answers).
  337.  
  338. The new VAXstation 4000 (VLC and model 60) series lets you PLAY audio
  339. (.au) files, and the package DECsound will let you do the recording.
  340. In fact, DECsound is given away free with Motif 1.1 and supports the
  341. VAXstation, Sun SPARCstation, DECvoice, and DECaudio devices.  Sun
  342. sound files work without change.  The Alpha systems (DEC 3000 Model
  343. 300, 400, 500) also have DECsound bundled with Motif.
  344.  
  345. Notes for the DECstation 5000/20-25: You need either XMedia tools from
  346. DEC ($$$$), or the AudioFile package (which works nicely) from
  347. crl.dec.com (see below). The audio device is "/dev/bba", you cannot
  348. send ".au" files directly to the device, the Xmedia/AF software
  349. provide an "audioserver" which must be run to play/record sounds.
  350.  
  351. The SGI Personal IRIS 4D/30 and 4D/35 have the same capabilities as
  352. the Indigo. The audio board was optional on the 4D/30.
  353. The Indigo2 and Indy features are a superset of the Indigo features.
  354.  
  355. The new Apple Macs have more powerful audio hardware; the latest
  356. models have built-in microphones.
  357.  
  358. Software exists for the PC that can play sound on its 1-bit speaker
  359. using pulse width modulation (see appendix); the Soundblaster board
  360. records at rates up to 13 k and plays back up to 22 k (weird
  361. combination, but that's the way it is).
  362.  
  363. Here's some info about the newest Atari machine, the Falcon030.  This
  364. machine has stereo 16 bit CODECs and a 32 MHz Motorola 56001 that can
  365. handle 8 channels of 16 bit audio, up to 50 khz/channel with
  366. simultaneous playback and record.  The Falcon DMA sound engine is also
  367. compatible with the 8 bit stereo DMA used on the STe and TT. All of
  368. these systems use signed data.
  369.  
  370. On the NeXT, the Motorola 56001 DSP chip is programmable and you can
  371. (in principle) do what you want.  The SGI Indigo uses the same DSP chip but
  372. it can't be programmed by users -- SGI prefers to offer it as a shared
  373. system resource to multiple applications, thus enabling developers to
  374. program audio with their Audio Library and avoid code modifications
  375. for execution on future machines with different audio hardware, i.e. a
  376. different DSP. For example, the Indigo2 and Indy do not have a DSP chip.
  377.  
  378. The Amiga also has a 6-bit volume, which can be used to produce
  379. something like a 14-bit output for each voice.  The hardware can also
  380. use one of each voice-pair to modulate the other in FM (period) or AM
  381. (volume, 6-bits).
  382.  
  383. The Acorn Archimedes uses a variation on U-LAW with the bit order
  384. reversed and the sign bit in bit 0.  Being a 'minority' architecture,
  385. Arc owners are quite adept at converting sound/image formats from
  386. other machines, and it is unlikely that you'll ever encounter sound in
  387. one of the Arc's own formats (there are several).
  388.  
  389. The NCD MCX terminal has audio integrated with its X server.  The
  390. NCDAudio server is an extension of the X server, working together with
  391. it, with stress on the networking capability of sound transmission.
  392. The NCDAudio API provides format handling (ULAW8, Linear Unsig 8,
  393. Linear Sig 8, Linear Sig 16 MSB, Linear Unsig 16 MSB), flowing (to the
  394. server, from the server, to the i/o, from the i/o), wave form
  395. generators (Square, Sine, Saw, Constant) and the capability of area
  396. broadcast using UDP.  Provision for manipulating data files
  397. (SND, WAV, VOC & AU) is also provided.
  398.  
  399. CD-I machines form a special category.  The following formats are used:
  400.  
  401.      - PCM 44.1 kHz standard CD format
  402.      - ADPCM - Addaptive Delta PCM
  403.        - Level A 37.8 kHz 8-bit
  404.        - Level B 37.8 kHz 4-bit
  405.        - Level C 18.9 kHz 4-bit
  406.  
  407.  
  408. File formats
  409. ------------
  410.  
  411. Historically, almost every type of machine used its own file format
  412. for audio data, but some file formats are more generally applicable,
  413. and in general it is possible to define conversions between almost any
  414. pair of file formats -- sometimes losing information, however.
  415.  
  416. File formats are a separate issue from device characteristics.  There
  417. are two types of file formats: self-describing formats, where the
  418. device parameters and encoding are made explicit in some form of
  419. header, and "raw" formats, where the device parameters and encoding
  420. are fixed.
  421.  
  422. Self-describing file formats generally define a family of data
  423. encodings, where a header fields indicates the particular encoding
  424. variant used.  Headerless formats define a single encoding and usually
  425. allows no variation in device parameters (except sometimes sampling
  426. rate, which can be a pain to figure out other than by listening to the
  427. sample).
  428.  
  429. The header of self-describing formats contains the parameters of the
  430. sampling device and sometimes other information (e.g. a
  431. human-readable description of the sound, or a copyright notice).  Most
  432. headers begin with a simple "magic word".  (Some formats do not simply
  433. define a header format, but may contain chunks of data intermingled
  434. with chunks of encoding info.)  The data encoding defines how the
  435. actual samples are stored in the file, e.g. signed or unsigned, as
  436. bytes or short integers, in little-endian or big-endian byte order,
  437. etc.  Strictly spoken, channel interleaving is also part of the
  438. encoding, although so far I have seen little variation in this area.
  439.  
  440. Some file formats apply some kind of compression to the data, e.g.
  441. Huffman encoding, or simple silence deletion.
  442.  
  443. Here's an overview of popular file formats.
  444.  
  445.         Self-describing file formats
  446.         ----------------------------
  447.  
  448. extension, name   origin          variable parameters (fixed; comments)
  449.  
  450. .au or .snd       NeXT, Sun       rate, #channels, encoding, info string
  451. .aif(f), AIFF     Apple, SGI      rate, #channels, sample width, lots of info
  452. .aif(f), AIFC     Apple, SGI      same (extension of AIFF with compression)
  453. .iff, IFF/8SVX    Amiga           rate, #channels, instrument info (8 bits)
  454. .voc              Soundblaster    rate (8 bits/1 ch; can use silence deletion)
  455. .wav, WAVE        Microsoft       rate, #channels, sample width, lots of info
  456. .sf               IRCAM           rate, #channels, encoding, info
  457. none, HCOM        Mac             rate (8 bits/1 ch; uses Huffman compression)
  458. none, MIME        Internet        (see below)
  459. none, NIST SPHERE DARPA speech community (see below)
  460. .mod or .nst      Amiga           (see below)
  461.  
  462. Note that the filename extension ".snd" is ambiguous: it can be either
  463. the self-describing NeXT format or the headerless Mac/PC format, or
  464. even a headerless Amiga format.
  465.  
  466. I know nothing for sure about the origin of HCOM files, only that
  467. there are a lot of them floating around on our system and probably at
  468. FTP sites over the world.  The filenames usually don't have a ".hcom"
  469. extension, but this is what SOX (see below) uses.  The file format
  470. recognized by SOX includes a MacBinary header, where the file
  471. type field is "FSSD".  The data fork begins with the magic word "HCOM"
  472. and contains Huffman compressed data; after decompression it it is 8
  473. bits unsigned data.
  474.  
  475. IFF/8SVX allows for amplitude contours for sounds (attack/decay/etc).
  476. Compression is optional (and extensible); volume is variable; author,
  477. notes and copyright properties; etc.
  478.  
  479. AIFF, AIFC and WAVE are similar in spirit but allow more freedom in
  480. encoding style (other than 8 bit/sample), amongst others.
  481.  
  482. There are other sound formats in use on Amiga by digitizers and music
  483. programs, such as IFF/SMUS.
  484.  
  485. Appendices describes the NeXT and VOC formats; pointers to more info
  486. about AIFF, AIFC, 8SVX and WAVE (which are too complex to describe
  487. here) are also in appendices.
  488.  
  489. DEC systems (e.g. DECstation 5000) use a variant of the NeXT format
  490. that uses little-endian encoding and has a different magic number
  491. (0x0064732E in little-endian encoding).
  492.  
  493. Standard file formats used in the CD-I world are IFF but on the disc
  494. they're in realtime files.
  495.  
  496. An interesting "interchange format" for audio data is described in the
  497. proposed Internet Standard "MIME", which describes a family of
  498. transport encodings and structuring devices for electronic mail.  This
  499. is an extensible format, and initially standardizes a type of audio
  500. data dubbed "audio/basic", which is 8-bit U-LAW data sampled at 8000
  501. samples/sec.
  502.  
  503. The "IRCAM" sound file system has now been superseded by the so-called
  504. "BICSF" (for Berkeley/IRCAM/CARL Sound File system) software release.
  505. More recently, there has been an effort at Princeton (Prof. Paul
  506. Lansky) and Stanford (Stephen Travis Pope) to standardize several
  507. extensions to BICSF.  A description of BICSF and the
  508. Princeton/Stanford extensions is available by anonymous ftp from
  509. ftp.cwi.nl [192.16.184.180], in directory /pub/audio/BICSF-info.  This
  510. file contains further ftp pointers to software.
  511.  
  512. A sound file format popular in the DARPA speech community is the NIST
  513. SPHERE standard.  The most recent version of the SPHERE package is
  514. available via anonymous ftp from jaguar.ncsl.nist.gov [129.6.48.157]
  515. in compressed tar form as "sphere-v.tar.Z" (where "v" is the version
  516. code).  The NIST SPHERE header is an object-oriented, 1024-byte
  517. blocked, ASCII structure which is prepended to the waveform data.  The
  518. header is composed of a fixed-format portion followed by an
  519. object-oriented variable portion.  I have placed a short description
  520. of NIST SPHERE on ftp.cwi.nl:/pub/audio/NIST-SPHERE.
  521.  
  522. Finally, a somewhat different but popular format are "MOD" files,
  523. usually with extension ".mod" or ".nst" (they can also have a prefix
  524. of "mod.").  This originated at the Amiga but players now exist for
  525. many platforms.  MOD files are music files containing 2 parts: (1) a
  526. bank of digitized samples; (2) sequencing information describing how
  527. and when to play the samples.  See the appendix "The Amiga MOD Format"
  528. for a description of this file format (and pointers to ftp'able
  529. players and example MOD files).
  530.  
  531.         Headerless file formats
  532.         -----------------------
  533.  
  534. extension       origin          parameters
  535. or name
  536.  
  537. .snd, .fssd     Mac, PC         variable rate, 1 channel, 8 bits unsigned
  538. .ul             US telephony    8 k, 1 channel, 8 bit "U-LAW" encoding
  539. .snd?           Amiga           variable rate, 1 channel, 8 bits signed
  540.  
  541. It is usually easy to distinguish 8-bit signed formats from unsigned
  542. by looking at the beginning of the data with 'od -b <file | head';
  543. since most sounds start with a little bit of silence containing small
  544. amounts of background noise, the signed formats will have an abundance
  545. of bytes with values 0376, 0377, 0, 1, 2, while the unsigned formats
  546. will have 0176, 0177, 0200, 0201, 0202 instead.  (Using "od -c" will
  547. also show any headers that are tacked in front of the file.)
  548.  
  549. The Apple IIgs records raw data in the same format as the Mac, but
  550. uses a 0 byte as a terminator; samples with value 0 are replaced by 1.
  551.  
  552.         Sound formats and the Apple Macintosh
  553.         -------------------------------------
  554.  
  555. (Thanks to Bill Houle, <Bill.Houle@SanDiegoCA.NCR.COM>)
  556.  
  557.                              SOX/DOS   MAC
  558. Sound Format           file ext  type  Mac program to convert to 'snd'
  559. ---------------------- --------  ----  -------------------------------
  560. Mac snd                .snd      sfil  [n/a]
  561. Amiga IFF/8SVX         .iff            AmigaSndConverter, BST
  562. Amiga SoundTracker     .mod      STrk  ModVoicer
  563. Audio IFF              .aiff     AIFF  SoundExtractor, Sample Editor,
  564.                                        UUTool, BST, M5Mac
  565. DSP Designer                     DSPs  SoundHack
  566. IRCAM                  .sf       IRCM  SoundHack
  567. MacMix                           MSND  SoundHack
  568. RIFF WAVE              .wav            SoundExtractor, BST, Balthazar
  569. SoundBlaster           .voc            SoundExtractor, BST
  570. SoundDesigner/AudioMedia         Sd2f  SoundHack
  571. Sound[Edit|Cap|Wave]   .hcom     FSSD  SoundExtractor, SoundEdit,
  572.                                        Wavicle, BST
  573. Sun uLaw/Next .snd     .au/.snd  NxTS  SoundExtractor, SoundHack,
  574.                                        au<->snd, UUTool, BST
  575.  
  576.  
  577. File conversions
  578. ----------------
  579.  
  580.         SOX (UNIX, PC, Amiga)
  581.         ---------------------
  582.  
  583. The most versatile tool for converting between various audio formats
  584. is SOX ("Sound Exchange").  It can read and write various types of
  585. audio files, and optionally applies some special effects (e.g. echo,
  586. channel averaging, or rate conversion).
  587.  
  588. SOX recognizes all filename extensions listed above except ".snd",
  589. which would be ambiguous anyway, and ".wav" (but there's a patch, see
  590. below).  Use type ".au" for NeXT ".snd" files.  Mac and PC ".snd"
  591. files are completely described by these parameters:
  592.  
  593.         -t raw -b -u -r 11000
  594.  
  595. (or -r 22000 or -r 7333 or -r 5500; 11000 seems to be the most common
  596. rate).
  597.  
  598. The source for SOX, version 6, platchlevel 8, was posted to
  599. alt.sources, and should be widely archived.  (Patch 9 was posted later
  600. and incporporates some important .wav fixes.)  To save you the trouble
  601. of hunting it down, it can be gotten by anonymous ftp from
  602. wuarchive.wustl.edu, in the directory usenet/alt.sources/articles,
  603. files 7288.Z through 7295.Z.  (These files are compressed news
  604. articles containing shar files, if you hadn't guessed.)  I am sure
  605. many sites have similar archives, I'm just listing one that I know of
  606. and which carries a lot of this kind of stuff.  (Also see the appendix
  607. if you don't have Internet access.)
  608.  
  609. A compressed tar file containing the same version of SOX is available
  610. by anonymous ftp from ftp.cwi.nl [192.16.184.180], in directory
  611. /pub/audio/sox7.tar.Z.  You may be able to locate a nearer version
  612. using archie!
  613.  
  614. Ports of SOX:
  615.  
  616. - The source as posted should compile on any UNIX and PC system.
  617.  
  618. - A PC version is available by ftp from ftp.cwi.nl (see above) as
  619.   pub/audio/sox5dos.zip; also available from the garbo mail server.
  620.  
  621. - The latest Amiga SOX is available via anonymous ftp to
  622.   wuarchive.wustl.edu, files systems/amiga/audio/utils/amisox*.  (See
  623.   below for a non-SOX solution.)
  624.   The final release of r6 will compile as distributed on the Amiga with
  625.   SAS/C version 6.  Binaries (since many Amiga users do not own
  626.   compilers) will continue to be available for FTP.
  627.  
  628. SOX usage hints:
  629.  
  630. - Often, the filename extension of sound files posted on the net is
  631.   wrong.  Don't give up, try a few other possibilities using the
  632.   "-t <type>" option.  Remember that the most common file type is
  633.   unsigned bytes, which can be indicated with "-t ub".  You'll have to
  634.   guess the proper sampling rate, but often it's 11k or 22k.
  635.  
  636. - In particular, with SOX version 4 (or earlier), you have to
  637.   specify "-t 8svx" for files with an .iff extension.
  638.  
  639. - When converting linear samples to U-LAW using the .au type for the
  640.   output file, you must specify "-U" for the output file, otherwise
  641.   you will end up with a file containing a NeXT/Sun header but linear
  642.   samples -- only the NeXT will play such files correctly.  Also, you
  643.   must explicitly specify an output sampling rate with "-r 8000".
  644.   (This may seem fixed for most cases in version 5, but it is still
  645.   occasionally necessary, so I'm keeping this warning in.)
  646.  
  647.         Sun Sparc
  648.         ---------
  649.  
  650. On Sun Sparcs, starting at SunOS 4.1, a program "raw2audio" is
  651. provided by Sun (in /usr/demo/SOUND -- see below) which takes a raw
  652. U-LAW file and turns it into a ".au" file by prefixing it with an
  653. appropriate header.
  654.  
  655.         NeXT
  656.         ----
  657.  
  658. On NeXTs, you can usually rename .au files to .snd and it'll work like
  659. a charm, but some .au files lack header info that the NeXT needs.
  660. This can be fixed by using sndconvert:
  661.  
  662.         sndconvert -c 1 -f 1 -s 8012.8210513 -o nextfile.snd sunfile.au
  663.  
  664.         SGI Indigo, Indigo2, Indy and Personal IRIS
  665.         -------------------------------------------
  666.  
  667. SGI supports "soundfiler" (in /usr/sbin), a program similar in
  668. spirit to SOX but with a GUI.  Soundfiler plays aiff, aifc, NeXT/Sun
  669. and .wav formats.  It can do conversions between any of these formats
  670. and to and from raw formats including mulaw.  It also does sample rate
  671. conversions.
  672.  
  673. Three shell commands are also provided that give the same functionality:
  674. "sfplay", "sfconvert", and "aifcresample" (all in /usr/sbin).
  675.  
  676.         Amiga
  677.         -----
  678.  
  679. Mike Cramer's SoundZAP can do no effects except rate change and it
  680. only does conversions to IFF, but it is generally much faster than
  681. SOX.  (Ftp'able from the same directory as amisox above.)
  682.  
  683. Newer versions of OmniPlay (see below) will also convert to IFF.
  684.  
  685.         Tandy
  686.         -----
  687.  
  688. The Tandy 1000 uses a (proprietary?) compressed format.  There is a PD
  689. Mac to Tandy conversion program called CONVERT.  Leonard Erickson
  690. <leonard@qiclab.scn.rain.com> writes: There is a WAV driver from Tandy
  691. if people ask.  There also appears to be a program that purports to
  692. convert other formats to Tandy, but I haven't tested this one yet.
  693.  
  694.         Apple Macintosh
  695.         ---------------
  696.  
  697. Bill Houle sent the following list:
  698.  
  699. Popular commercial apps are indicated with a [*].  All other programs
  700. mentioned are shareware/freeware available from SUMEX and the various
  701. mirror sites, or check archie for the nearest FTP location.
  702.  
  703. MAC SOUND CONVERSION PROGRAMS
  704.  
  705. SoundHack [Tom Erbe, tom@mills.edu]
  706.   Can read/write Sound Designer II, Audio IFF, IRCAM, DSP Designer and NeXT 
  707.   .snd (or Sun .au); 8-bit uLaw, 8-bit linear, 32-bit floating point and 16-bit
  708.   linear data encoding.  Can read (but not write) raw data files.  Implements
  709.   soundfile convolution, a phase vocoder, a binaural filter and an amplitude 
  710.   analysis & gain change module.
  711.  
  712. SoundExtractor [Alberto Ricci, FRicci@polito.it]
  713.   Extracts 'snd' resources, AIFF, SoundEdit, VOC, and WAV data from
  714.   practically anything, converting to 'snd' files.
  715.  
  716. Balthazar [Craig Marciniak, AOL:TemplarDev]
  717.   Converts WAV files to 'snd'.
  718.   
  719. Brian's Sound Tool [Brian Scott, bscott@ironbark.ucnv.edu.au]
  720.   Converts 'snd' or SoundEdit to WAV.  Can also convert WAV, VOC, AIFF, Amiga
  721.   8SVX and uLaw to 'snd'.
  722.  
  723. AmigaSndConverter [Povl H. Pederson, eco861771@ecostat.aau.dk]
  724.   Converts Amiga IFF/8SVX to Mac 'snd'.
  725.  
  726. au<->Mac [Victor J. Heinz, vic:wbst128@xerox.com]
  727.   Converts Sun uLaw to Mac 'snd'.
  728.   
  729. ULAW [Rod Kennedy, rod@faceng.anu.edu.au]
  730.   Converts 'snd' to Sun uLaw.
  731.  
  732. UUTool [Bernie Wieser, wieser@acs.ucalgary.ca]
  733.   Primarily a uuencode/decode program, but in true Swiss Army Knife
  734.   fashion can also read/write Sun uLaw, AIFF, and 'snd' files.
  735.  
  736. ModVoicer [Kip Walker, Kip_Walker@mcimail.com]
  737.   Converts Amiga MOD voices into SoundEdit files or 'snd' resources.
  738.  
  739. Music 5 Mac [Simone Bettini, space@maya.dei.unipd.it]
  740.   Primarily a Music Synthesis system, but can also convert between 'snd', AIFF,
  741.   and IBM .DAT(?).
  742.  
  743. See also the section on players -- some players also do conversions.
  744.  
  745.  
  746. Playing audio files on UNIX
  747. ---------------------------
  748.  
  749. The commands needed to play an audio file depend on the file format
  750. and the available hardware and software.  Most systems can only
  751. directly play sound in their native format; use a conversion program
  752. (see above) to play other formats.
  753.  
  754.         Sun Sparcstation running SunOS 4.x
  755.         ----------------------------------
  756.  
  757. Raw U-LAW files can be played using "cat file >/dev/audio".
  758.  
  759. A whole package for dealing with ".au" files is provided by Sun on an
  760. experimental basis, in /usr/demo/SOUND.  You may have to compile the
  761. programs first.  (If you can't find this directory, either you are not
  762. running SunOS 4.1 yet, or your system administrator hasn't installed
  763. it -- go ask him for it, not me!)  The program "play" in this
  764. directory recognizes all files in Sun/NeXT format, but a SS 1 or 2 can
  765. play only those using U-LAW encoding at 8 k -- the SS 10 hardware
  766. plays other encodings, too.
  767.  
  768. If you ca't find "play", you can also cat a ".au" file to /dev/audio,
  769. if it uses U-LAW; the header will sound like a short burst of noise
  770. but the rest of the data will sound OK (really, the only difference in
  771. this case between raw U-LAW and ".au" files is the header; the U-LAW
  772. data is exactly the same).
  773.  
  774. Finally, OpenWindows 3.0 has a full-fledged audio tool.  You can drop
  775. audio file icons into it, edit them, etc.
  776.  
  777.         Sun Sparcstation running Solaris 2.0
  778.         ------------------------------------
  779.  
  780. Under SVR4 (and hence Solaris 2.0), writing to /dev/audio from the
  781. shell is a bad idea, because the device driver will flush its queue as
  782. soon as the file is closed.  Use "audioplay" instead.  The supported
  783. formats and sampling rates are the same as above.
  784.  
  785.         NeXT
  786.         ----
  787.  
  788. On NeXT machines, the standard "sndplay" program can play all NeXT
  789. format files (this include Sun ".au" files).  It supports at least
  790. U-LAW at 8 k and 16 bits samples at 22 or 44.1 k.  It attempts
  791. on-the-fly conversions for other formats.
  792.  
  793. Sound files are also played if you double-click on them in the file
  794. browser.
  795.  
  796.         SGI Indigo, Indigo2, Indy and Personal IRIS
  797.         -------------------------------------------
  798.  
  799. On SGI Indigo, Indigo2, Indy and the 4D/30 and /35 Personal IRIS workstations,
  800. "WorkSpace" plays audio files in .aiff, .aifc, .au, and .wav formats if
  801. you double click them and the sampling rate is one of 8000, 11025,
  802. 16000, 22050, 32000, 44100, or 48000.  On the Personal IRIS, you need
  803. to have the audio board installed (check the output from hinv) and you
  804. must run IRIX 3.3.2 or 4.0 or higher.  These files can also be played
  805. with "soundfiler" and "sfplay".  ".aiff" and ".aifc" files at the above
  806. sampling rates can also be played with playaifc.  (All in /usr/sbin)
  807.  
  808. There is no simple /dev/audio interface on these SGI machines.  (There
  809. was one on 4D/25 machines, reading and writing signed linear 8-bit
  810. samples at rates of 8, 16 and 32 k.)
  811.  
  812. A program "playulaw" was posted as part of the "radio 2.0" release
  813. that I posted to several source groups; it plays raw U-LAW files on
  814. the Indigo, Indigo2, Indy or Personal IRIS audio hardware.
  815.  
  816.         Sony NEWS
  817.         ---------
  818.  
  819. The whole current Sony NEWS line (laptop, desktop, server) have
  820. builtin sound capabilities.  You can buy an external board for the
  821. older NEWS machines.  In the default mode (8k/8-bit mulaw), Sun .au
  822. files are directly supported (you can 'cat' .au files to /dev/sb0 and
  823. have them play.)  The /usr/sony/bin/sbplay command on NEWS-OS 6.0
  824. also supports Sun .au files.
  825.  
  826.         Others
  827.         ------
  828.  
  829. Most other UNIX boxes don't have audio hardware and thus can't play
  830. audio data.  This is actually rapidly changing and most new hardware
  831. that hits the market has some form of audio support.  Unfortunately
  832. there is no single portable interface for audio that comes near the
  833. acceptance and functionality (let alone code size :-) of X11 for
  834. graphics.  There are at least two network-transparent packages, both
  835. in some way based on the X11 architecture, that attempt to fillo the
  836. gap:
  837.  
  838. DEC CRL's AudioFile supports Digital RISC systems running Ultrix,
  839. Digital Alpha AXP systems running OSF/1, Sun Sparcs, and SGI
  840. AL-capable systems (e.g., Indigo, Indy).  The source kit is located at
  841. ftp site crl.dec.com [192.58.206.2] in /pub/DEC/AF.
  842.  
  843. NCD's NetAudio supports NCD's MCX line of X terminals as well as
  844. Sparcs running either SunOS 4.1.3 or Solaris 2.2, using the /dev/audio
  845. interface (they claim it should be easy to port).  The source it
  846. located at ftp.x.org [198.112.44.100] in contrib/netaudio.  It is also
  847. ported to SGI (tested on IRIX 5.x), and there are unconfirmed rumors
  848. that it is being ported to SCI and Linux.
  849.  
  850.  
  851. Playing audio files on the Vaxstation 4000 (VMS)
  852. ------------------------------------------------
  853.  
  854. 1) Without DECsound
  855.  
  856. ".au" files can be played by COPYING them to device "SOA0:".  This
  857. device is set up by enabling the driver SODRIVER.  You can use the
  858. following command file:
  859.  
  860. $!---------------- cut here -------------------------------
  861. $! sound_setup.com    enable SOUND driver
  862. $ run sys$system:sysgen
  863. connect soa0 /adapter=0 /csr=%x0e00 /vector=%o304 /driver=sodriver
  864. exit
  865. $ exit
  866. $!----------------- cut here ------------------------------------
  867.  
  868. 2) With DECsound (bundled with motif)
  869.  
  870. Just start DECsound by selecting it from the session manager in the 
  871. applications menu. (Not there use "@vue$library:sound$vue_startup").
  872. Make sure settings; device type (vaxstation 4000) and play settings
  873. (headphone jack) are selected.  To play files from the DCL prompt 
  874. (handy if you want to play sounds on a remote workstation) set a 
  875. symbol up as follows; 
  876. PLAY == "$DECSOUND -VOLUME 50 -PLAY"
  877. usage;
  878. DCL> play sound.au
  879.  
  880. 3) Audio port
  881.  
  882. The external audio port comes with a telephone-jack-like port.   For
  883. starters, you can plug a telephone RECEIVER right into this port to
  884. hear your first sound files.   After that, you can use the adapter
  885. (that came with the VaxStation), and plug in a small set of stereo
  886. speakers or headphones (the kind you'd plug into a WALKMAN, for 
  887. example), for more volume.  The adapter also has a microphone plug so
  888. that you can record sounds if DECsound is installed.
  889.  
  890.  
  891. Playing audio files on micros
  892. -----------------------------
  893.  
  894. Most micros have at least a speaker built in, so theoretically all you
  895. need is the right software.  Unfortunately most systems don't come
  896. bundled with sound-playing software, so there are many public domain
  897. or shareware software packages, each with their own bugs and features.
  898. Most separate sound recording hardware also comes with playing
  899. software, most of which can play sound (in the file format used by
  900. that hardware) even on machines that don't have that hardware
  901. installed.
  902.  
  903.         PC or compatible
  904.         ----------------
  905.  
  906. Chris S. Craig announces the following software for PCs:
  907.  
  908. ScopeTrax       This is a complete PC sound player/editor package.  Sounds
  909.                 can be played back at ANY rate between 1kHz to 65kHz through
  910.                 the PC speaker or the Sound Blaster.  It supports several
  911.                 file formats including VOC, IFF/8SVX, raw signed and raw
  912.                 unsigned.  A separate executable is provided to convert
  913.                 .au and mu-law to raw format.  ScopeTrax requires EGA/VGA
  914.                 graphics for editing and displaying sounds on a REALTIME
  915.                 oscilloscope.  The package also includes:
  916.                       * An expanded memory player which can play sounds
  917.                         larger than 640K in size.
  918.                       * Basic (rough) sound compression/uncompression
  919.                         utilities.
  920.                       * Complete documentation.
  921.                 The package is FREEWARE!  It is available on SIMTEL in the
  922.                 PD1:[MSDOS.SOUND] directory.
  923.  
  924. One of the appendices below contains a list of more programs to play
  925. sound on the PC.
  926.  
  927.         Atari
  928.         -----
  929.  
  930. For sounds on Atari STs - programs are in the atari/sound/players
  931. directory on atari.archive.umich.edu (141.211.164.8).
  932.  
  933.         Tandy
  934.         -----
  935.  
  936. On a Tandy 1000, sounds can be played and recorded with DeskMate Sound
  937. (SOUND.PDM), or if they not stored in compressed format, they can also
  938. be played be a program called PLAYSND.  No indication of whether
  939. PLAYSND is PD or not. It hasn't been updated since March of 89.
  940.  
  941.         Amiga
  942.         -----
  943.  
  944. On the Amiga, OmniPlay by David Champion <dgc3@midway.uchicago.edu>
  945. plays and converts IFF-8SVX, AIFF, WAV, VOC, .au, .snd, and 8 bit raw
  946. (signed, unsigned, u-law) samples.  As of version 1.23, OmniPlay will
  947. also convert any playable sample to 8SVX.  Files: wuarchive.wustl.edu
  948. in /systems/amiga/audio/sampleplayers/oplay123.lha (?)
  949. amiga.physik.unizh.ch in mus/play/oplay123.lha
  950.  
  951.         Apple Macintosh
  952.         ---------------
  953.  
  954. Malcolm Slaney from Apple writes:
  955.  
  956.  "We do have tools to play sound back on most of our Unix hosts.  We wrote
  957.  a program called TcpPlay that lets us read a sound file on a Unix host,
  958.  open a TCP/IP connection to the Mac on my desk, and plays the file.  We
  959.  think of it as X windows for sound (at least a step in that direction.)
  960.  
  961.  This software is available for anonymous FTP from ftp.apple.com
  962.  [IP address 130.43.2.3 -- Guido].
  963.  Look for  ~ftp/pub/TcpPlay/TcpPlay.sit.hqx.
  964.  
  965.  Finally, there are MANY tools for working with sound on the Macintosh. Three
  966.  applications that come to mind immediately are SoundEdit (formerly by
  967.  Farralon and now by MacroMind/Paracomp), Alchemy and Eric Keller's Signalyze.
  968.  There are lots of other tools available for sound editing (including some
  969.  of the QuickTime Movie tools.)"
  970.  
  971. Bill Houle sent the following lists:
  972.  
  973. Popular commercial apps are indicated with a [*].  All other programs
  974. mentioned are shareware/freeware available from SUMEX and the various
  975. mirror sites, or check archie for the nearest FTP location.
  976.  
  977. MAC SOUND EDITORS
  978.  
  979. Sample Editor [Garrick McFarlane, McFarlaneGA@Kirk.Vax.Aston.Ac.UK]
  980.   Plays AIFF and 'snd' sounds.  Can convert between AIFF and 'snd'.
  981.   Can record from built-in mic.  Can add effects such as fade,
  982.   normalize, delay, etc.
  983.  
  984. Wavicle [Lee Fyock]
  985.   Plays SoundEdit files.  Can convert to 'snd'.  Can record from built-in mic.
  986.   Can add effects such as fade, filter, reverb, etc.
  987.  
  988. [*]SoundEdit/SoundEdit Pro [Farallon/MacroMind*Paracomp]
  989.   Plays SoundEdit and 'snd' sounds.  Can read/write SoundEdit files and 'snd' 
  990.   sounds.  Can record from built-in mic.  Can add effects such as
  991.   echo, filter, reverb, etc.
  992.  
  993.  
  994. MAC SOUND PLAYERS
  995.  
  996. Sound-Tracker  [Frank Seide]
  997.   Plays Amiga SoundTracker files in foreground or background.
  998.  
  999. Macintosh Tracker [Thomas R. Lawrance, tomlaw@world.std.com]
  1000.   Plays Amiga SoundTracker files in foreground or background. A port of Marc
  1001.   Espie's Unix Tracker version with Frank Seide's core player thrown in for
  1002.   good measure.
  1003.  
  1004. The Player [Antoine Rosset & Mike Venturi]
  1005.   Plays AIFF, SoundEdit, MOD, and 'snd' files.
  1006.  
  1007. SoundMaster (aka [*]Kaboom!) [Bruce Tomlin]
  1008.   Associates SoundEdit files to MacOS events.
  1009.  
  1010. SndControl [Riccardo Ettore, 72277.1344@compuserve.com]
  1011.   Associates 'snd' sounds to MacOS events.
  1012.  
  1013. Canon 2 [Glenn Anderson, glenn@otago.ac.nz; Jeff Home, jeff@otago.ac.nz]
  1014.   Plays AIFF or 'snd' files in foreground or background.
  1015.  
  1016. Another Mac play/convert program: "It's called SoundApp. I wrote it,
  1017. (franke1@llnl.gov) and it's FreeWare. It will play: SoundCap,
  1018. SoundEdit, WAVE, VOC, MOD, Amiga IFF (8SVX), Sound Designer, AIFF, AU,
  1019. Mac Resource, and DVI ADPCM. It can convert all the above to System 7
  1020. sound resources (except MOD where just the samples are extracted.) And
  1021. it will double buffer."
  1022.  
  1023.  
  1024. The Sound Site Newsletter
  1025. -------------------------
  1026.  
  1027. An electronic publication with lots of info about digitised sound and
  1028. sound formats, albeit mostly on PCs, is "The Sound Site Newsletter",
  1029. maintained by David Komatsu <davek@uhunix.uhcc.hawaii.edu>.
  1030. Issue 14 appeared in July 1993.  As of that issue, the Sound Site
  1031. Newsletter has expanded its charter to include commercial products and
  1032. will appear monthly.  There is now also a sound site network of ftp
  1033. servers, bulletin boards and authors.  The Sound Site Newsletter (once
  1034. again!) has its own ftp site: sound.usach.cl.
  1035.  
  1036. The Sound Newsletter is posted to: comp.sys.ibm.pc.soundcard
  1037.                                    comp.sys.ibm.pc.misc
  1038.                                    rec.games.misc
  1039. FTP: oak.oakland.edu (misc/sound)
  1040.      garbo.uwasa.fi (pc/sound)
  1041.      sound.usach.cl (pub/Sound/Newsltr) [Home Base]
  1042.  
  1043.  
  1044. Posting sounds
  1045. --------------
  1046.  
  1047. The newsgroup alt.binaries.sounds.misc is dedicated to postings
  1048. containing sound.  (Discussions related to such postings belong in
  1049. alt.binaries.sounds.d.)
  1050.  
  1051. There is no set standard for posting sounds; uuencoded files in most
  1052. popular formats are welcome, if split in parts under 50 kBytes.  To
  1053. accomodate automatic decoding software (such as the ":decode" command
  1054. of the nn newsreader), please place a part indicator of the form
  1055. (mm/nn) at the end of your subject meaning this is number mm of a
  1056. total of nn part.
  1057.  
  1058. It is recommended to post sounds in the format that was used for the
  1059. original recording; conversions to other formats often lose
  1060. information and would do people with identical hardware as the poster
  1061. no favor.  For instance, convering 8-bit linear sound to U-LAW loses
  1062. the lower few bits of the data, and rate changing conversions almost
  1063. always add noise.  Converting from U-LAW to linear requires expansion
  1064. to 16 bit samples if no information loss is allowed!
  1065.  
  1066. U-LAW data is best posted with a NeXT/Sun header.
  1067.  
  1068. If you have to post a file in a headerless format (usually 8-bit
  1069. linear, like ".snd"), please add a description giving at least the
  1070. sampling rate and whether the bytes are signed (zero at 0) or unsigned
  1071. (zero at 0200).  However, it is highly recommended to add a header
  1072. that indicates the sampling rate and encoding scheme; if necessary you
  1073. can use SOX to add a header of your choice to raw data.
  1074.  
  1075. Compression of sound files usually isn't worth it; the standard
  1076. "compress" algorithm doesn't save much when applied to sound data
  1077. (typically at most 10-20 percent), and compression algorithms
  1078. specifically designed for sound (e.g. NeXT's) are usually
  1079. proprietary.  (See also the section "Compression schemes" earlier.)
  1080.